package top.dancun.easbaseinfo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.dancun.common.utils.R;
import top.dancun.easbaseinfo.service.DeptService;

/**
 * @author dancun
 */
@RestController
public class testController {
    @Autowired
    private DeptService deptService;
    @RequestMapping("/test")
    public R test(){//
       return  R.ok().put("list",deptService.listDeptTree());
    }
}
